using System;
using System.Collections.Generic;
using System.Text;
using Common.Utilities;

namespace Workflows.Components
{
    /// <summary></summary>
    [Serializable]
    public class FieldSetter
    {
        private string _TgtFieldName;
        /// <summary></summary>
        public string TgtFieldName
        {
            get { return _TgtFieldName; }
            set { _TgtFieldName = value; }
        }

        private Guid _SrcComponentID;
        /// <summary></summary>
        public Guid SrcComponentID
        {
            get { return _SrcComponentID; }
            set { _SrcComponentID = value; }
        }

        private string _SrcFieldName;
        /// <summary></summary>
        public string SrcFieldName
        {
            get { return _SrcFieldName; }
            set { _SrcFieldName = value; }
        }

        private object _SrcFieldValue;
        /// <summary></summary>
        public object SrcFieldValue
        {
            get { return _SrcFieldValue; }
            set { _SrcFieldValue = value; }
        }
	

        private string _TransformationCodeSnippet;
        /// <summary></summary>
        public string TransformationCodeSnippet
        {
            get { return _TransformationCodeSnippet; }
            set { _TransformationCodeSnippet = value; }
        }
    }

    /// <summary></summary>
    [Serializable]
    public class FieldSetter2
    {
        private string _FieldName;
        /// <summary></summary>
        public string FieldName
        {
            get
            {
                return this._FieldName;
            }
            set
            {
                this._FieldName = value;
            }
        }

        private SimpleDataType _FieldDataType;
        /// <summary></summary>
        public SimpleDataType FieldDataType
        {
            get
            {
                return this._FieldDataType;
            }
            set
            {
                this._FieldDataType = value;
            }
        }

        private object _FieldValue;
        /// <summary></summary>
        public object FieldValue
        {
            get
            {
                return this._FieldValue;
            }
            set
            {
                this._FieldValue = value;
            }
        }
    }
}
